

using com.tc.util;
namespace com.tc.zigbee.zcl.command
{
    public class DataValue
    {
        public byte type;
        public byte[] value;
        public DataValue(byte type, byte[] value)
        {

            this.type = type;
            this.value = value;
        }

        public string toString()
        {
            if (value.Length == 1)
                return value[1] + "";
            if (value.Length == 2)
                return DataUtil.shortValue(value) + "";
            return base.ToString();

        }

    }
}